package com.jdiv.util;

import java.io.DataInputStream;

public class UnsignedInteger {
	
private DataInputStream in;
	public UnsignedInteger(){}

	public UnsignedInteger(DataInputStream in){
		this.in=in;
	}

	public int readUnsignedInt(){
		int unsigned_int_resultante=0;
			try{
			unsigned_int_resultante= in.readUnsignedByte()  + (256 * in.readUnsignedByte() ) + (256 * 256 * in.readUnsignedByte() ) + (256 * 256 * 256 * in.readUnsignedByte() );
		//		unsigned_int_resultante= in.readInt();
			}catch(Exception e){
			e.printStackTrace();
		 }
		
		 return unsigned_int_resultante;	
	}
}
